package com.example.jyjava.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Sales {
    private Integer id;
    private Integer shopId;
    private Integer orderId;
    private Integer userId;
    private Integer manageId;
    private String address;
    private String time;
    private String remark;
    private boolean deleteType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public Sales() {
    }

    public Sales(Integer id, Integer shopId, Integer orderId, Integer userId, Integer manageId, String address, String time, String remark, boolean deleteType, Date creatTime, Date updateTime) {
        this.id = id;
        this.shopId = shopId;
        this.orderId = orderId;
        this.userId = userId;
        this.manageId = manageId;
        this.address = address;
        this.time = time;
        this.remark = remark;
        this.deleteType = deleteType;
        this.creatTime = creatTime;
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getManageId() {
        return manageId;
    }

    public void setManageId(Integer manageId) {
        this.manageId = manageId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public boolean isDeleteType() {
        return deleteType;
    }

    public void setDeleteType(boolean deleteType) {
        this.deleteType = deleteType;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Sales{" +
                "id=" + id +
                ", shopId=" + shopId +
                ", orderId=" + orderId +
                ", userId=" + userId +
                ", manageId=" + manageId +
                ", address='" + address + '\'' +
                ", time='" + time + '\'' +
                ", remark='" + remark + '\'' +
                ", deleteType=" + deleteType +
                ", creatTime=" + creatTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
